import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

//引入Makeit Captcha
import MakeitCaptcha from 'makeit-captcha'
import 'makeit-captcha/dist/captcha.min.css'

//引入主页  
import App from './App.vue'
import router from './router'
//引入ui 
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css' 


//使用App做为组件  创建一个vue应用 
const app = createApp(App)

//安装插件  （插件就是在vue全局上增加属性或方法）
app.use(createPinia())
app.use(router)
app.use(ElementPlus,{
    locale: zhCn,
})
app.use(MakeitCaptcha)

//将应用挂载到容器   id="app"的div上 
app.mount('#app')
